//
//  UIDevice_public extension.swift
//  Wanke
//
//  Created by BO ZHOU on 2020/10/10.
//

import UIKit


public extension UIDevice {
    
    
    /**
     * 旋转屏幕
     */
    func setOrientation(interfaceOrientation: UIInterfaceOrientation) {
        
        let resetOrientation = UIInterfaceOrientation.unknown.rawValue
        
        self.setValue(resetOrientation, forKey: "orientation")
        
        self.setValue(interfaceOrientation.rawValue, forKey: "orientation")
    }
}
